package com.demo.crm.springboot3security.service;

import java.util.List;

import com.demo.crm.springboot3security.entity.CustomForm;

public interface CustomFormService {
    CustomForm createForm(CustomForm form);

    CustomForm findByCode(String code);

    CustomForm findById(Long id);

    List<CustomForm> findAll();

    List<CustomForm> findByModuleId(Long moduleId);

    CustomForm updateForm(CustomForm form);

    void deleteForm(Long id);

    boolean existsByCode(String code);

    List<CustomForm> findPublished();

    List<CustomForm> findByModuleIdAndPublished(Long moduleId, boolean published);
}